/*
 * @Autor: dc
 * @Date: 2022-03-30 17:18:45
 * @LastEditors: dc
 * @LastEditTime: 2022-03-30 17:26:32
 * @Description: 
 */
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { BrowserRouter, HashRouter } from 'react-router-dom'
import store from './redux/store.js'

ReactDOM.render(
  <BrowserRouter><App /></BrowserRouter>
  ,
  document.getElementById('root')
);


// 监听redux状态更新App
store.subscribe(() => {
  ReactDOM.render(<BrowserRouter><App></App></BrowserRouter>, document.getElementById('root'))
})